﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
    //blog标题   
   $blog_title = get_bloginfo('name');
   $siteurl = get_bloginfo('template_url');
   
   
 ?>

<title><?php echo $blog_title?></title>
<script src="/wp-content/themes/sosogame/js/lib/jquery.js" type="text/javascript"></script>
<script src="/wp-content/themes/sosogame/js/lib/jquery.autocomplete.js" type="text/javascript"></script>
<script src="/wp-content/themes/sosogame/js/function.js" type="text/javascript"></script>
<link href="/wp-content/themes/sosogame/js/lib/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  <script>
    DD_belatedPNG.fix('img');
	　function resetBtn(fm){
   　　 fm.reset();
    　　return false;
　　}
  function switchmodTag(modtag,modcontent,modk) {
         for(i=1; i <5; i++) {
             if (i==modk) {
                 document.getElementById(modtag+i).className="menuOn";document.getElementById(modcontent+i).className="slidingList";}
             else {
                 document.getElementById(modtag+i).className="menuNo";document.getElementById(modcontent+i).className="slidingList_none";}
             }
     }
     
     function clear(flag){
     	 if(flag == 1){
     	 		var hangye = document.search.hangye.value;
     	 		alert(hangye);
     	 	}
     	
     	
     	}
    
  </script>
</head>

<body>
    <div id="box">
        	<div id="cool">
            	<p style="float: left; width:200px;">欢迎您来到游戏搜搜！</p>
                <span>
                    <a href="#" target="_blank" class="linkstyle01">登录</a>&nbsp;|&nbsp;
                    <a href="#" target="_blank" class="linkstyle01">注册</a>
                </span>
            </div>
            <div id="Topheay">
            	<a href="#" target="_blank" class="linkstyle01">
                	<img src="<?php echo $siteurl?>/images/logo.gif" alt="游戏搜搜" title="游戏搜搜" border="0" />
                </a>
            </div>
            <div id="conter">
                 <div id="slidingBlock" style="margin:25px 0 0 150px;">
                    <div style="float:left; height:30px;_margin-bottom:-2px;">
                        <ul id="abc">
                            <h4 class="menuOn" id="mod1" onmouseover="switchmodTag('mod','slidingList','1');this.blur();">
                            <span>全部游戏</span></h4>
                            <h4 class="menuNo" id="mod2" onmouseover="switchmodTag('mod','slidingList','2');this.blur();">
                            <span>Flash游戏</span></h4>
                            <h4 class="menuNo" id="mod3" onmouseover="switchmodTag('mod','slidingList','3');this.blur();">
                            <span>网页游戏</span></h4> 
                            <h4 class="menuNo" id="mod4" onmouseover="switchmodTag('mod','slidingList','4');this.blur();">
                            <span>手机游戏</span></h4> 
                        </ul>
                    </div>
                    <div class="slidingList" id="slidingList1">
                        <ul>
                            <li >
                              <form name="search">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td><input type="text" class="input_text" name="q" id="allgame" value="请输入要检索的游戏名称" onclick="clear(1)"
                                                onfocus="if(this.value == '请输入要检索的游戏名称') {this.value='';}init_search('allgame');" onblur="if(this.value=='')this.value='请输入要检索的游戏名称';" style="width:450px; " /></td>
                                            
                                            <td><input type="button"  value="" style=" background:url(<?php echo $siteurl?>/images/bottom_bg.gif); 
                                            width:130px; height:28px; border:none; cursor:pointer; " /></td>
                                        </tr>
                                    </table>
                                </form> 
                             </li> 
                        </ul>
                    </div>
                    <div class="slidingList_none" id="slidingList2">
                          <ul>
                           <li >
                              <form name="search">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td><input type="text" class="input_text" name="q" id="flashgame" value="请输入要检索的游戏名称" onclick="clear(1)"
                                                onfocus="if(this.value == '请输入要检索的游戏名称') {this.value='';}init_search('flashgame');" onblur="if(this.value=='')this.value='请输入要检索的游戏名称';" style="width:450px; " /></td>
                                           
                                            <td><input type="button" value=" " style="background:url(<?php echo $siteurl?>/images/bottom_bg.gif); 
                                            width:130px; height:28px; border:none; cursor:pointer; " /></td>
                                        </tr>
                                    </table>
                                </form> 
                             </li> 
                        </ul>
                    </div>
                    <div class="slidingList_none" id="slidingList3" style="_clear:both" >
                          	<ul>
                           <li >
                              <form name="search">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td><input type="text" class="input_text" name="q" id="webgame" value="请输入要检索的游戏名称" onclick="clear(1)"
                                                onfocus="if(this.value == '请输入要检索的游戏名称') {this.value='';}init_search('webgame');" onblur="if(this.value=='')this.value='请输入要检索的游戏名称';" style="width:450px; " /></td>
                                          
                                            <td><input type="button" value=" " style="background:url(<?php echo $siteurl?>/images/bottom_bg.gif); 
                                            width:130px; height:28px; border:none; cursor:pointer; " /></td>
                                        </tr>
                                    </table>
                                </form> 
                             </li> 
                        </ul>
                    </div> 
                     <div class="slidingList_none" id="slidingList4" style="_clear:both" >
                          	<ul>
                           <li >
                              <form name="search">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td><input type="text" class="input_text" name="q" id="phonegame" value="请输入要检索的游戏名称" onclick="clear(1)"
                                                onfocus="if(this.value == '请输入要检索的游戏名称') {this.value='';}init_search('phonegame');" onblur="if(this.value=='')this.value='请输入要检索的游戏名称';" style="width:450px; " /></td>
                                           
                                            <td><input type="button" value=" " style="background:url(<?php echo $siteurl?>/images/bottom_bg.gif); 
                                            width:130px; height:28px; border:none;  cursor:pointer;" /></td>
                                        </tr>
                                    </table>
                                </form> 
                             </li> 
                        </ul>
                    </div> 
				</div>
                <!-- soso input  end  -->
                <div id="top-new">
                	<ul>
                    	<h4>热门游戏</h4>
			<?php 
				//$hotPosts = new WP_Query();//实例化
				//$hotPosts->
				query_posts('orderby=post_date&showposts=6');//返回分类ID为7的2篇内容
				while (have_posts()) : the_post(); 
					//the_excerpt();
			?>
			<li><a href="<?php echo the_permalink(); ?>" target="_blank" class="linkstyle01"><?php the_title(); ?></a></li>
			<?php
					//echo the_title();  
				endwhile;
			?>
			<!--
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">美丽日记给皮肤美起来</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">支持国货，美白又漂亮</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">Megan白牙新发现！</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">宅急送：修护你的肌肤</a></li>
			-->
                    </ul>
                    <ul>
                    	<h4>推荐游戏</h4>
			<?php 
				//$hotPosts = new WP_Query();//实例化
				//$hotPosts->
				query_posts('orderby=comment_count&showposts=6');//返回分类ID为7的2篇内容
				while (have_posts()) : the_post(); 
					//the_excerpt();
			?>
			<li><a href="<?php echo the_permalink(); ?>" target="_blank" class="linkstyle01"><?php the_title(); ?></a></li>
			
			<?php
					//echo the_title();  
				endwhile;
			?>
			<!--
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">美丽日记给皮肤美起来</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">支持国货，美白又漂亮</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">Megan白牙新发现！</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">宅急送：修护你的肌肤</a></li>
			-->
                    </ul>
                </div>
                <div id="botton-new">
                	<h5>游戏新闻</h5>
                    <ul>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                        <li><h4><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></h4><span>2001-10-22</span></li>
                    </ul>
                </div>
            </div>
            <!-- conter  end -->
        <?php get_footer();?>